//
// Created on 2024/8/15.
//
// Node APIs are not fully supported. To solve the compilation error of the interface cannot be found,
// please include "napi/native_api.h".

#ifndef RESOURCE_MANAGER_H
#define RESOURCE_MANAGER_H

#include <memory>
#include <string>
#include <napi/native_api.h>
#include <rawfile/raw_file.h>
#include <rawfile/raw_dir.h>
#include <rawfile/raw_file_manager.h>
#include "av_codec_sample_log.h"
#include "dfx/error/av_codec_sample_error.h"

class ResourceManager {
public:
    ~ResourceManager();
    static napi_value GetFileList(napi_env env, napi_callback_info info);
    static napi_value GetRawFileContent(napi_env env, napi_callback_info info);
    static napi_value GetRawFileDescriptor(napi_env env, napi_callback_info info);
    static napi_value IsRawDir(napi_env env, napi_callback_info info);
};

#endif // RESOURCE_MANAGER_H
